#!/bin/bash -e

rm -rf ./dl-assets/
mkdir -p ./dl-assets/
pushd ./dl-assets/
wget https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.16.0/oss-browser-linux-x64.zip
unzip oss-browser-linux-x64.zip
chmod -x ./oss-browser-linux-x64/resources/custom/Readme.md
popd
dpkg-buildpackage -us -uc
lintian ../aliyun-oss-browser_1.16.0~spark2_amd64.deb
